package beans;

public class Foglalo {

	private long id;
	private long rowVersion;
	private String foglaloNev;
	private Boolean belsoE;
	private String ktsgHely;
	private String ktsgViselo;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getRowVersion() {
		return rowVersion;
	}

	public void setRowVersion(long rowVersion) {
		this.rowVersion = rowVersion;
	}

	public String getFoglaloNev() {
		return foglaloNev;
	}

	public void setFoglaloNev(String foglaloNev) {
		this.foglaloNev = foglaloNev;
	}

	public Boolean getBelsoE() {
		return belsoE;
	}

	public void setBelsoE(Boolean belsoE) {
		this.belsoE = belsoE;
	}

	public String getKtsgHely() {
		return ktsgHely;
	}

	public void setKtsgHely(String ktsgHely) {
		this.ktsgHely = ktsgHely;
	}

	public String getKtsgViselo() {
		return ktsgViselo;
	}

	public void setKtsgViselo(String ktsgViselo) {
		this.ktsgViselo = ktsgViselo;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((belsoE == null) ? 0 : belsoE.hashCode());
		result = prime * result
				+ ((foglaloNev == null) ? 0 : foglaloNev.hashCode());
		result = prime * result + (int) (id ^ (id >>> 32));
		result = prime * result
				+ ((ktsgHely == null) ? 0 : ktsgHely.hashCode());
		result = prime * result
				+ ((ktsgViselo == null) ? 0 : ktsgViselo.hashCode());
		result = prime * result + (int) (rowVersion ^ (rowVersion >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Foglalo other = (Foglalo) obj;
		if (belsoE == null) {
			if (other.belsoE != null)
				return false;
		} else if (!belsoE.equals(other.belsoE))
			return false;
		if (foglaloNev == null) {
			if (other.foglaloNev != null)
				return false;
		} else if (!foglaloNev.equals(other.foglaloNev))
			return false;
		if (id != other.id)
			return false;
		if (ktsgHely == null) {
			if (other.ktsgHely != null)
				return false;
		} else if (!ktsgHely.equals(other.ktsgHely))
			return false;
		if (ktsgViselo == null) {
			if (other.ktsgViselo != null)
				return false;
		} else if (!ktsgViselo.equals(other.ktsgViselo))
			return false;
		if (rowVersion != other.rowVersion)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Foglalo [id=" + id + ", rowVersion=" + rowVersion
				+ ", foglaloNev=" + foglaloNev + ", belsoE=" + belsoE
				+ ", ktsgHely=" + ktsgHely + ", ktsgViselo=" + ktsgViselo + "]";
	}

}
